package io.github.source.media.bean;


import java.io.IOException;

import okhttp3.Call;

/**
 * @ClassName: MediaEventListener
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author: huangrongcai
 * @date: 2024/6/24
 * @Copyright: 黄嵘才（HuangRc)
 */
public abstract class MediaEventListener {
    public static final MediaEventListener NONE = new MediaEventListener() {
    };

    static Factory factory(final MediaEventListener listener) {
        return new MediaEventListener.Factory() {
            public MediaEventListener create(RealMediaCall call) {
                return listener;
            }
        };
    }
    public void callStart(MediaCall call) {
    }
    public void callFailed(MediaCall call, IOException ioe) {
    }
    public interface Factory {

        MediaEventListener create(RealMediaCall call);
    }
}
